/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dashboard;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *
 * @author tomasz
 */
@Controller
public class dashboard {
    
    private dao.Account account;
    
    @Autowired
    public void setAccount(dao.Account account){
        this.account = account;
    }
    
    
    @RequestMapping("/index.htm")
    public String taskListDefault(ModelMap model)
    {
        
         List<model.Account> account = this.account.allAccountDashboard();
         model.addAttribute("account", account);
         return "dashboard";
    }
    
}
